package com.pwser;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;

import com.pwser.atomikos.DBConfig1;
import com.pwser.atomikos.DBConfig2;

@SpringBootApplication
//@EnableJpaRepositories("com.pwser.dao") //dao注入JPA容器
//@EntityScan("com.pwser.entity") //注入实体类
@MapperScan("com.pwser.dao") //注入mybatis的mapper
@EnableConfigurationProperties(value={DBConfig1.class, DBConfig2.class})
public class App {
	
	public static void main(String[] args) {
		//主函数运行springboot项目
		SpringApplication.run(App.class, args);
	}
	
}
